package com.ziyun.pop.common.e.material;

import com.ziyun.pop.common.e.BaseEnum;

/**
 * 库存交易方向
 * 1增加,2减少
 * @author guizhao
 * @date 2018-10-06 10:40
 */
public enum DirectionEnum implements BaseEnum{

    /**
     * 1.增加
     */
    INCREASE(1,"增加"),

    /**
     * -1.减少
     */
    REDUCE(-1,"减少"),
    ;

    private int id;
    private String describe;

    DirectionEnum(int id, String describe){
        this.id = id;
        this.describe = describe;
    }

    @Override
    public int toInt() {
        return id;
    }

    @Override
    public String toCode() {
        return null;
    }

    @Override
    public String toDescribe() {
        return describe;
    }
}
